$(document).ready(function(){  
	$("#ContentPane .edit_block.sortableList").bind('sorted', function(event, sortedItems){

		$.ajax( {url: "<?=Mozg_Router::Get('http')->Create(array('module' => 'admin', 'ctrl' => 'structure', 'action' => 'updatesort', 'cat' => $this->cid));?>",
			dataType: 'json',
			type: 'POST',
			data: {'scat': sortedItems},
			success:function (data){
						HandleResponseJSON(data);
					}
		} );
		
		return false;		
	});
});